import request from '@/utils/request'

// 获取轮播图列表
export const getBannerList = (condition: IPageQuery) => request({
    url: '/api/v1/admin/banners',
    method: 'GET',
    params: condition
})

// 保存轮播图
export const saveBanner = (data: any) => request({
    url: '/api/v1/admin/banners',
    method: 'POST',
    data
})